package com.xinqi.xinqidev.controller;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author xin麒
 * @date 2023/11/28 15:32
 */
@CrossOrigin
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/get")
    public String get(){
        System.out.println("moduleSecond log........");
        return "get ... moduleSecond_haha";
    }


    @PostMapping("/post")
    public String post(@RequestBody Map<String,String> map){
        System.out.println("moduleSecond map is "+map);
        return "post ... moduleSecond_haha";
    }



}
